package org.iba.coobob;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.Menu;



public class SplashActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_logo);
		
		Handler handler = new Handler();
		handler.postDelayed(new SplashHandler() , 3000);

	
		
		handler.sendEmptyMessageAtTime(0, 3000);
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.logo, menu);
		return true;
	}
	
	class SplashHandler implements Runnable
	{
		@Override
		public void run() {
			Intent loginActivity = new Intent(SplashActivity.this,LoginsActivity.class);
			startActivity(loginActivity);
		}
	}

}
